<?php 
namespace Hui\FrontEndBundle\Form;

use Symfony\Component\Form\FormEvent;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class SearchType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
        	->add('condition', 'text', array(
        		'required' => false,
        		'property_path' => false,
        		'attr' => array(
        				'size' => 40,
        		),
        	
       		))
        ;
       		
//        	$builder->addEventListener(FormEvents::PRE_SET_DATA, $listener)
    }

    public function getName()
    {
        return 'search';
    }
}